package com.design.pattern.designPrinciples.demeter.simple;

import java.util.ArrayList;
import java.util.List;

/**
 * create by yufeng on 2021/7/3 13:49
 */
public class Teacher {

    public void checkTaskNumber(GroupLeader groupLeader) {
        List<Task> taskList = new ArrayList<Task>();
        for (int i = 0; i < 100; i++) {
            taskList.add(new Task());
        }
        groupLeader.statistics(taskList);
    }
}
